<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加旅客预订酒店信息</title>
    <style>
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #333;
            color: #fff;
            padding: 10px 20px;
        }

        .navbar a {
            color: #fff;
            text-decoration: none;
            margin-right: 10px;
            letter-spacing: 0.5px;
            transition: color 0.3s ease, background-color 0.3s ease, text-decoration 0.3s ease;
        }

        .navbar-brand {
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 1px;
        }

        .navbar-links {
            display: flex;
        }

        /* 鼠标悬停时链接样式 */
        .navbar a:hover {
            color: #ffffff; /* 更改悬停时的颜色 */
            text-decoration: none; /* 移除下划线 */
            background-color: rgba(255, 255, 255, 0.3); /* 添加背景色透明度 */
        }
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .container {
            max-width: 500px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h2 {
            text-align: center;
        }
        form {
            margin-top: 20px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"],
        input[type="number"] {
            width: calc(100% - 22px);
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        button {
            background-color: #4caf50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
        }
        button:hover {
            background-color: #45a049;
        }
        .balance {
            color: #666;
            font-size: 14px;
            text-align: center;
            margin-top: 20px;
        }

        .balance span {
            font-weight: bold;
        }
    </style>
</head>
<body>
<!-- 导航栏 -->
<div class="navbar">
    <div class="navbar-brand">
        <a href="#">某某酒店预订系统</a>
    </div>
    <div class="navbar-links">
        <a href="#">首页</a>
        <a href="#">关于我们</a>
        <a href="#">服务</a>
        <a href="#">联系我们</a>
    </div>
</div>
<div class="container">
    <h2>添加旅客预订酒店信息</h2>
    <form action="studentadd" method="post">
        <div>
            <label for="sname">入住人:</label>
            <input type="text" id="sname" name="sname" required="required" />
        </div>
        <div>
            <label for="course">手机号:</label>
            <input type="text" id="course" name="course" placeholder="请输入11位手机号"required="required" />
        </div>
        <div>
            <label for="age">时间:</label>
            <input type="number" id="age" name="age" required="required" min="0" />
        </div>
        <div class="balance">
            <p>当前余额：<span id="balance-amount">¥1,000</span></p>
        </div>
        <div>
            <button type="submit">保存</button>
        </div>
    </form>
</div>

</body>
</html>
